window.app = {

    CONNECT: 1,     // 第一次（或重连）初始化连接
    CHAT: 2,        // 聊天消息
    SIGNED: 3,      // 消息签收
    KEEPALIVE: 4    // 客户端保持心跳

    /**
     * 用户消息模型
     * @param sendUserId
     * @param receiverUserId
     * @param msg
     * @param msgId
     * @constructor
     */
    ,ChatMsg: function (sendUserId, receiverUserId, msg, msgId) {
        this.sendUserId = sendUserId;
        this.receiverUserId = receiverUserId;
        this.msg = msg;
        this.msgId = msgId;
    }

    /**
     * 聊天记录数据
     * @param action
     * @param chatMsg
     * @param extand
     * @constructor
     */
    ,DataContent: function (action, chatMsg, extand) {
        this.action = action;
        this.chatMsg = chatMsg;
        this.extand = extand;
    }

};